# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-imap-tools
_pyname="imap-tools"
pkgver=1.7.3
pkgrel=0
arch="noarch"
pkgdesc="Work with email and mailbox by IMAP"
url="https://pypi.python.org/project/imap-tools"
license="Apache-2.0"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/i/imap-tools/imap-tools-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4ffeb34c1ada419fc9c22119a788e27ab82632278e1ddb03d86c4f0aadc5a7be0cc4318bf88247a37efefdab818e9519316b29f7df6b8f926fabd3bd37dd10c7  py3-imap-tools-1.7.3.tar.gz
"
